package com.morehair.controller.wx;

import com.morehair.bean.vo.admin.BaseRespVo;
import com.morehair.bean.vo.wx.UserIndexVo;
import com.morehair.service.wx.WxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 * Date: 2021/6/8
 * Time: 18:41
 * author: zhang wei
 */
@RestController
@RequestMapping("wx/user")
public class WxUserController {

    @Autowired
    WxUserService wxUserService;

    @RequestMapping("index")
    public BaseRespVo indexOfUser() {
        UserIndexVo userIndexVo = wxUserService.getUserIndex();
        return BaseRespVo.ok(userIndexVo);
    }

}
